/**
 * @FileName ConcreteElement2.java
 * @Package com.designMode.visitor
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-19 上午11:40:29
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.visitor;

/**
 * @author 顾博君
 * @ClassName ConcreteElement2
 * @Date 2016-1-19 上午11:40:29
 * @Function 具体元素2
 */
public class ConcreteElement2 extends Element {

    @Override
    public void doSomething() {
        System.out.println("第二个元素doSomething");
    }

    public void doOtherThing() {
        System.out.println("第二个元素doOtherThing");
    }

    @Override
    public void accept(Visitor v) {
        v.visitConcreteElement(this);
    }
}
